package org.seckill.dao;


import org.apache.ibatis.annotations.Param;
import org.seckill.entity.Seckill;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface SeckillDao {

    int reduceNumber(@Param("seckillId") Long seckillId,@Param("killTime") Date killTime);

    Seckill queryById(@Param("seckillId") Long seckillId);

    List<Seckill> queryAll(@Param("offset") int offset,@Param("limit") int limit);

    void killByProcedure(Map<String,Object> paramMap);
}
